KFbxTypedProperty Class Template Reference

#include <kfbxproperty.h>
Inheritance diagram for KFbxTypedProperty:
Inheritance graph
[legend]

List of all members.


Detailed Description

template<class T>
class KFbxTypedProperty< T >

This template class is used to contain user properties of specific data types.

Definition at line 1304 of file kfbxproperty.h.


Constructor and Destructor.

  KFbxTypedProperty ()
  Constructor.
  KFbxTypedProperty (KFbxProperty const &pProperty)
  Copy constructor.
  ~KFbxTypedProperty ()
  Destructor.

Static initialization.

KFbxProperty const &  StaticInit (KFbxObject *pObject, char const *pName, eFbxPropertyFlags pFlags=eNO_FLAG)
  Creates a property and initializes it using a specific flag.
KFbxProperty const &  StaticInit (KFbxObject *pObject, char const *pName, T const &pValue, bool pForceSet=true, eFbxPropertyFlags pFlags=eNO_FLAG)
  Creates a property and initializes it using a specific value and flag.
KFbxProperty const &  StaticInit (KFbxObject *pObject, char const *pName, KFbxDataType const &pDataType, eFbxPropertyFlags pFlags=eNO_FLAG)
  Creates a property and initializes it using a specific flag.
KFbxProperty const &  StaticInit (KFbxObject *pObject, char const *pName, KFbxDataType const &pDataType, T const &pValue, bool pForceSet=true, eFbxPropertyFlags pFlags=eNO_FLAG)
  Creates a property and initializes it using a specific value and flag.
KFbxProperty const &  StaticInit (KFbxProperty pCompound, char const *pName, KFbxDataType const &pDataType, T const &pValue, bool pForceSet=true, eFbxPropertyFlags pFlags=eNO_FLAG)
  Creates a property and initializes it using a specific value and flag.

Public Member Functions

KFbxTypedProperty operator= (T const &pValue)
  Assignment operator.
bool  Set (T const &pValue, bool pCheckValueEquality)
  Sets the value of this property.
bool  Set (T const &pValue)
  Sets the value of this property.
Get () const
  Returns the value of this property.

Friends

class  KFbxObject

Constructor & Destructor Documentation

KFbxTypedProperty (  )  [inline]

Constructor.

Definition at line 1312 of file kfbxproperty.h.

KFbxTypedProperty ( KFbxProperty const &  pProperty  )  [inline]

Copy constructor.

Parameters:
pProperty  The property copied to this one.

Definition at line 1317 of file kfbxproperty.h.

~KFbxTypedProperty (  )  [inline]

Destructor.

Definition at line 1320 of file kfbxproperty.h.


Member Function Documentation

KFbxProperty const& StaticInit ( KFbxObject pObject,
char const *  pName,
eFbxPropertyFlags  pFlags = eNO_FLAG  
) [inline]

Creates a property and initializes it using a specific flag.

Parameters:
pObject  The object that contains this property.
pName  The name of the property.
pFlags  The property flag.

Definition at line 1334 of file kfbxproperty.h.

KFbxProperty const& StaticInit ( KFbxObject pObject,
char const *  pName,
T const &  pValue,
bool  pForceSet = true,
eFbxPropertyFlags  pFlags = eNO_FLAG  
) [inline]

Creates a property and initializes it using a specific value and flag.

Parameters:
pObject  The object that contains this property.
pName  The name of the property.
pValue  The value of the property.
pForceSet  If true, the value is forcibly set, if false the value is not set when it equals the default value.
pFlags  The property flag.

Definition at line 1348 of file kfbxproperty.h.

KFbxProperty const& StaticInit ( KFbxObject pObject,
char const *  pName,
KFbxDataType const &  pDataType,
eFbxPropertyFlags  pFlags = eNO_FLAG  
) [inline]

Creates a property and initializes it using a specific flag.

Parameters:
pObject  The object that contains this property.
pName  The name of the property.
pDataType  The property data type.
pFlags  The property flag.

Definition at line 1368 of file kfbxproperty.h.

KFbxProperty const& StaticInit ( KFbxObject pObject,
char const *  pName,
KFbxDataType const &  pDataType,
T const &  pValue,
bool  pForceSet = true,
eFbxPropertyFlags  pFlags = eNO_FLAG  
) [inline]

Creates a property and initializes it using a specific value and flag.

Parameters:
pObject  The object that contains this property.
pName  The name of the property.
pDataType  The property data type.
pValue  The property value.
pForceSet  If true, the value is forcibly set, if false the value is not set when it equals the default value.
pFlags  The property flag.

Definition at line 1383 of file kfbxproperty.h.

KFbxProperty const& StaticInit ( KFbxProperty  pCompound,
char const *  pName,
KFbxDataType const &  pDataType,
T const &  pValue,
bool  pForceSet = true,
eFbxPropertyFlags  pFlags = eNO_FLAG  
) [inline]

Creates a property and initializes it using a specific value and flag.

Parameters:
pCompound  The parent property of this property.
pName  The name of the property.
pDataType  The property data type.
pValue  The property value.
pForceSet  If true, the value is forcibly set, if false the value is not set when it equals to the default value.
pFlags  The property flag.

Definition at line 1406 of file kfbxproperty.h.

KFbxTypedProperty& operator= ( T const &  pValue  )  [inline]

Assignment operator.

Parameters:
pValue  The value assigned to this property.
Returns:
This property.

Definition at line 1428 of file kfbxproperty.h.

bool Set ( T const &  pValue,
bool  pCheckValueEquality  
) [inline]

Sets the value of this property.

Parameters:
pValue  The new value
pCheckValueEquality  If true, the value is not set if it equals the default value.
Returns:
True if the value is set successfully, false otherwise.

Definition at line 1435 of file kfbxproperty.h.

Referenced by KFbxTypedProperty< fbxReference * >::Set(), KFbxTypedProperty< fbxReference * >::StaticInit(), and KFbxTypedProperty< KFbxMarker::ELook >::StaticInit().

bool Set ( T const &  pValue  )  [inline]

Sets the value of this property.

Parameters:
pValue  The new value
Returns:
True if the value is set successfully, false otherwise.

Reimplemented from KFbxProperty.

Definition at line 1441 of file kfbxproperty.h.

T Get (  )  const [inline]

Returns the value of this property.

Returns:
The value of the property.

Definition at line 1446 of file kfbxproperty.h.


Friends And Related Function Documentation

friend class KFbxObject [friend]

Definition at line 1448 of file kfbxproperty.h.